package com.youlai.boot.modules.blog.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.common.model.Option;
import com.youlai.boot.system.model.entity.Archives;
import com.youlai.boot.system.model.query.ArchivesQuery;
import com.youlai.boot.system.model.query.DictDataPageQuery;
import com.youlai.boot.system.model.query.ProjectQuery;
import com.youlai.boot.system.model.vo.ArchivesVO;
import com.youlai.boot.system.model.vo.DictDataPageVO;
import com.youlai.boot.system.model.vo.ProjectVO;

import java.util.ArrayList;
import java.util.List;

public interface BlogService {

    IPage<ArchivesVO> getArchivesPage(ArchivesQuery queryParams);

    IPage<ProjectVO> getProjectPage();

    Page<DictDataPageVO> getDictDataPage(DictDataPageQuery queryParams);

    /**
     * 获取当前文章最近发布的三篇
     * @return
     */
    ArrayList<Archives> getArchivesTop3();

    ArchivesVO getArchivesById(Long id);
}
